Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the idiosyncratic "no atoms??" error message. #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agraef
Copy link
Owner

@agraef agraef commented Jan 13, 2023

This Lua error appears if the atoms argument to pd.Class:outlet is anything but a table. The fix is trivial: Check that the atoms argument actually is a table, and, if this is not the case, either output a more helpful error message, or just turn the singleton into a table with one element (which is what we do here).

I'm not sure that I actually want to fix this. It's one of pdlua's funny quirks which I actually discuss in the tutorial in order to illustrate what happens if something goes wrong deep down in pdlua's internals.

This Lua error appears if the atoms argument to pd.Class:outlet is
anything but a table. The fix is trivial: Check that the atoms argument
actually is a table, and, if this is not the case, either output a more
helpful error message, or just turn the singleton into a table with one
element (which is what we do here).

I'm not sure that I actually want to fix this. It's one of pdlua's
lovely quirks which I actually discuss in the tutorial in order to
illustrate what happens if something goes wrong deep down in pdlua's
internals.
@agraef agraef force-pushed the master branch 3 times, most recently from 5a45e7e to aa822ad Compare January 16, 2023 23:34
@agraef
Copy link
Owner Author

agraef commented Sep 21, 2024

Well, "no atoms??" is no more, it has been replaced by much better error reporting. But the error could still be avoided by this changeset, so I'm keeping the PR for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant